<?php
class clientsLogoWidgetComponents extends myComponents{  public function executeRender()  {    $this->node = $this->getRoute()->getObject();
    $this->logo = false;        if($this->node->getPicture()) {      if($this->node->getParameter() == 'clients') {        $this->logo = $this->node->getPicture();        $this->link = LinkGen::getInstance(LinkGen::STRUCTURE)->link($this->node->getId());      } else {        $parent = $this->node->getParent();                if($parent->getParameter() == 'clients') {          $this->logo = $parent->getPicture();          $this->link = LinkGen::getInstance(LinkGen::STRUCTURE)->link($parent->getId());        } else {          $this->logo = $this->node->getPicture();          $this->link = LinkGen::getInstance(LinkGen::STRUCTURE)->link($this->node->getId());        }      }    } else {      $parent = $this->node->getParent();            if($parent->getPicture() && $parent->getParameter() == 'clients') {        $this->logo = $parent->getPicture();        $this->link = LinkGen::getInstance(LinkGen::STRUCTURE)->link($parent->getId());      }    }  }
};